#!/bin/sh
for i in *; do
    test -f "$i" && continue;
    if test ! -z "$(ls "$i" | grep flac | head -n 1)"; then
        deflacdir "$i";
    fi;
done
